package com.work.biz.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.work.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 班级对象 biz_clazz
 *
 * @author lee
 * @date 2021-04-22
 */
@ApiModel
public class BizClazz extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 班级id
     */
    private Long classId;

    /**
     * 学校id
     */
    @NotNull(message = "学校ID不能为空")
    @ApiModelProperty(required = true, value = "学校ID")
    private Long schoolId;

    /**
     * 班级名称
     */
    @NotBlank(message = "班级名称不能为空")
    @ApiModelProperty(required = true, value = "班级名称")
    private String className;

    /**
     * 班级状态（0正常 1停用）
     */
    private String status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    private BizSchool school;

    private Long teacherId;

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public Long getClassId() {
        return classId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() {
        return schoolId;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassName() {
        return className;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public BizSchool getSchool() {
        return school;
    }

    public void setSchool(BizSchool school) {
        this.school = school;
    }

    public Long getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Long teacherId) {
        this.teacherId = teacherId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("classId", getClassId())
                .append("schoolId", getSchoolId())
                .append("className", getClassName())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
